package com.ghy.dto;

import com.ghy.constant.RE;
import com.ghy.dto.PageDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.validation.constraints.Pattern;

/**
 * @author GaoHeYang
 */
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Schema(name="用户分页DTO")
@Data
public class UserPageDTO extends PageDTO implements RE {

    @Schema(description ="登录账号")
    @Pattern(regexp = USERNAME_RE, message = USERNAME_RE_MSG)
    private String username;

    @Schema(description="用户昵称")
   // @Pattern(regexp = NICKNAME_RE, message = NICKNAME_RE_MSG)
    private String nickname;

    @Schema(description ="手机号码")
   // @Pattern(regexp = PHONE_RE, message = PASSWORD_RE_MSG)
    private String phone;


}
